package com.dw.etl.core.bean.model;

import java.io.Serializable;
import java.util.Date;

public class EtlRemind implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    private String des;

    private Byte lev;

    private String email;

    private String cont;

    private Date dtCre;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Byte getLev() {
        return lev;
    }

    public void setLev(Byte lev) {
        this.lev = lev;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCont() {
        return cont;
    }

    public void setCont(String cont) {
        this.cont = cont;
    }

    public Date getDtCre() {
        return dtCre;
    }

    public void setDtCre(Date dtCre) {
        this.dtCre = dtCre;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EtlRemind other = (EtlRemind) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes()))
            && (this.getLev() == null ? other.getLev() == null : this.getLev().equals(other.getLev()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getCont() == null ? other.getCont() == null : this.getCont().equals(other.getCont()))
            && (this.getDtCre() == null ? other.getDtCre() == null : this.getDtCre().equals(other.getDtCre()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode());
        result = prime * result + ((getLev() == null) ? 0 : getLev().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getCont() == null) ? 0 : getCont().hashCode());
        result = prime * result + ((getDtCre() == null) ? 0 : getDtCre().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", id=").append(id);
        sb.append(", des=").append(des);
        sb.append(", lev=").append(lev);
        sb.append(", email=").append(email);
        sb.append(", cont=").append(cont);
        sb.append(", dtCre=").append(dtCre);
        sb.append("]");
        return sb.toString();
    }
}